﻿using System;
using RTW.Core.Attributes;
using RTW.Core.Entity;

namespace RTW.Model
{
    /// <summary>
    /// 个人诉讼案卷表
    /// </summary>
    [Serializable]
    [Table(Name = "Personal_SuSong_Files")]
    public partial class PersonalSuSongFiles : IEntityBase
    {
        /// <summary>
        /// id
        /// </summary>
        [Id(true)]
        public int ID { get; set; }

        public string FileId { get; set; }

        /// <summary>
        /// 类型
        /// </summary>		
        public string FType { get; set; }

        /// <summary>
        /// 新旧
        /// </summary>		
        public string NewOrOld { get; set; }

        /// <summary>
        /// 年度
        /// </summary>		
        public int? FYear { get; set; }

        /// <summary>
        /// 期限
        /// </summary>		
        public string FTerm { get; set; }

        /// <summary>
        /// 期限代码
        /// </summary>		
        public string FTermCode { get; set; }

        /// <summary>
        /// 档号
        /// </summary>		
        public string FileNo { get; set; }

        /// <summary>
        /// 卷号
        /// </summary>		
        public string FRef { get; set; }

        /// <summary>
        /// 册号
        /// </summary>	
        public string BookNum { get; set; }

        /// <summary>
        /// 盒号
        /// </summary>		
        public int? BoxNum { get; set; }

        /// <summary>
        /// 册类型
        /// </summary>		
        public string BookType { get; set; }

        /// <summary>
        /// 部门
        /// </summary>		
        public string Dept { get; set; }

        /// <summary>
        /// 部门代码
        /// </summary>		
        public string DeptCode { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public FileState FilesState { get; set; }

        /// <summary>
        /// 单位ID
        /// </summary>		
        public int DWID { get; set; }

        /// <summary>
        ///封面ID
        /// </summary>		
        public string CoverID { get; set; }
    }
    public enum FileState
    {
        待提交 = 0,
        待审核 = 1,
        审核通过 = 2,
        审核不通过 = -1
    }
}
